The energy of a photon with frequency

is

, where

is Planck's constant. Assuming all of this energy is transferred to a single a electron, the electron will have energy

after being ejected from the metal. The potential difference required to decelerate such an electron until it stops is

. So, the slope of the line is

. Therefore, answer (B) is correct.